package com.hkfrich.common.enums;

import com.hkfrich.common.constant.Constants;

/**
 * @ClassName CodeEnum
 * @Desscription
 * @Author _HeiShuai
 * @Date 2022/8/17 16:39
 * @Version 1.0
 **/


public enum CodeEnum {
    /** 成功 */
    SUCCESS(Constants.SUCCESS_CODE, "操作成功"),

    /** 操作失败 */
    ERROR(Constants.ERROR_CODE, "操作失败"),

    /** token失效*/
    TIMEOUT(Constants.TIMEOUT_CODE, "token失效");

    CodeEnum(int statusCode, String msg){
        this.statusCode = statusCode;
        this.msg = msg;
    }

    public int statusCode() {
        return statusCode;
    }

    public String msg() {
        return msg;
    }

    private int statusCode;
    private String msg;
}



